
package com.joysuch.wwyt.datadump.biz.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zlg.common.datadump.annotation.DataDumpEntity;
import cn.zlg.common.datadump.annotation.DataDumpField;
import com.joysuch.wwyt.bp.entity.dsl.QBpDepart;
import com.joysuch.wwyt.datadump.biz.query.BpDepartDumpQueryBean;
import lombok.Data;

@DataDumpEntity(name = "depart-dump", entity = QBpDepart.class, exportQueryConditions = BpDepartDumpQueryBean.class,
        businessName = "部门", batchDeleteField = "showState", deleteFlagValue = "44")
@Data
public class BpDepartDumpBean {

    @Excel(name = "部门编号", width = 30)
    @DataDumpField(field = "code")
    private String code;

    @Excel(name = "部门名称", width = 30)
    @DataDumpField(field = "name")
    private String name;

    @Excel(name = "上级部门名称", width = 30)
    @DataDumpField(field = "parentId", referenceEntity = QBpDepart.class, referenceEntityField = "name")
    private String parentDepartName;

}
